<?php

namespace app\admin\controller\chat;

use app\admin\service\RecommendConsultingServerService;
use ShidianUtil\Thinkphp\Response\ApiResponse;
use think\APP;
use think\Request as Request;

/**
 * RecommendMemberAskServer 控制器
 * Class RecommendMemberAskServer
 * @package app\chat\controller
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037509
 */
class RecommendMemberAskServer
{
    private Request $request;

    private RecommendConsultingServerService $service;

    public function __construct(Request $request, RecommendConsultingServerService $recommendConsultingServerService)
    {
        $this->request = $request;
        $this->service = $recommendConsultingServerService;
    }

    /**
     * 可选推荐列表
     * @return ApiResponse
     * @url /chat/recommend_member_ask_server/index
     */
    public function index(): ApiResponse
    {
        return ApiResponse::success($this->service->index());
    }

}
